<!--
  @author heguanghua
  @since 2019/06/12 19:34
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'servCategId', hide:true}">servCategId</th>
        <th lay-data="{field:'categOneId', hide:true}">categOneId</th>
        <th lay-data="{field:'categTwoId', hide:true}">categTwoId</th>
        <th lay-data="{field:'servCategName', width:150, unresize:true, align:'center'}">服务分类</th>
        <th lay-data="{field:'categOneName', width:150, unresize:false, align:'center'}">前台一级分类</th>
        <th lay-data="{field:'categTwoName', width:150, unresize:false, align:'center'}">前台二级分类</th>
        <th lay-data="{field:'closeDaysStr', unresize:false, align:'center'}">关闭未来日期</th>
        <th lay-data="{field:'updateTime', width:190, unresize:true, align:'center'}">最近修改人/时间</th>
        <th lay-data="{field:'操作',width:140, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>

    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.servCategId}">servCategId</td>
        <td th:text="${item.categOneId}">categOneId</td>
        <td th:text="${item.categTwoId}">categTwoId</td>
        <td th:text="${item.servCategName}" class="">servCategName</td>
        <td th:text="${item.categOneName}" class="layui-gray">categOneName</td>
        <td th:text="${item.categTwoName}" class="layui-gray">categTwoName</td>
        <td th:text="${item.closeDaysStr}" class="layui-gray">closeDaysStr</td>
        <td th:text="${(item.updater != null ? item.updater+'/' : '')+T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}">updateTime</td>
        <td>
            <div>
                <a th:if="${#authPermit.checkPermit('/channel/config/close.action')}" lay-text="关闭库存" style="color: #00a0e9" href="javascript:void(0)" th:onclick="|closeDays('${query.channelId}', '${item.servCategId}', '${item.categOneId}', '${item.categTwoId}');|">关闭库存</a>
                <a th:if="${#authPermit.checkPermit('/channel/config/open.action')}" lay-text="开启库存" style="color: #00a0e9" href="javascript:void(0)" th:onclick="|openDays('${query.channelId}', '${item.servCategId}', '${item.categOneId}', '${item.categTwoId}');|">开启库存</a>
            </div>
        </td>
    </tr>
    </tbody>
</table>
